
<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>DataConverge</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="css/style.css">    
    <script type="text/javascript">
      function goback(){
      	var page=document.getElementById("page").value;
      	if(page!=""){
      		document.location.href='subject.htm?action=listMySubjects&ec_p='+page;
      	}else{
      		document.location.href='subject.htm?action=listMySubjects';
      	}
      }
      
      function showDoc(absLocation){
      
      }
      
      function gobacksch(){
      	var page=document.getElementById("page").value;
      	//alert('${my}');
      	if(page!=""){
      	    if('${my}'=='N')
      		document.location.href='subject.htm?action=listSchSubjects&ec_p='+page;
      		else if('${my}'=='Y')
      		document.location.href='subject.htm?action=listMySubjects&ec_p='+page;
      		else
      		//my==s;
      		document.location.href='subject.htm?action=listMyJoinedSubjects&ec_p='+page;
      	}else{
      		if('${my}'=='N')
      		document.location.href='subject.htm?action=listSchSubjects';
      		else if('${my}'=='Y')
      		document.location.href='subject.htm?action=listMySubjects';
      		else
      		document.location.href='subject.htm?action=listMyJoinedSubjects';
      	}
      }
    </script>
  </head>
  
  <body>
    <br>
    <div align="center"><a href="#" onclick="gobacksch();">返回</a></div>
    <br>
    <input type="hidden" name="page" id="page" value="${page}"/>
    <div align="center">
    课题：<strong><c:out value="${subject.subjectName}"/></strong>
	</div>
	<div align="center">
    		申报日期：<strong><c:out value="${subject.applyDate}"/>&nbsp;&nbsp;</strong>
    		中标日期：<strong><c:out value="${subject.permitDate}"/>&nbsp;&nbsp;</strong>
    		结题日期：<strong><c:out value="${subject.endSubDate}"/></strong> 		
    </div>
    <br>
    <table width="80%" align="center" border="1"> 
     <tr>
     	<td>文档</td>
     	<td>文档类型</td>
     	<td>上传日期</td>
     </tr>  
    <c:forEach items="${docs}" var="doc" varStatus="loopStep">
       <tr>
    	 <td><a href="/DataConverge/docs${doc.location}" target="_blank"><c:out value="${doc.filename}"/></a></td>
    	 <td><c:out value="${doc.type}"/></td>
    	 <td><c:out value="${doc.uploadDate}"/></td>
       </tr>
    </c:forEach>
	</table>
  </body>
</html>
